package org.gg.boom.common.controller;


import org.gg.boom.common.model.Response;
import org.gg.boom.kernel.web.domain.Server;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 */
@RestController
@RequestMapping("/monitor/server")
public class ServerController extends BaseController {
    @PreAuthorize("@ss.hasPermi('monitor:server:list')")
    @GetMapping()
    public Response getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return success(server);
    }
}
